﻿<%@ Page Language="C#" MasterPageFile="~/Users/Users.Master" AutoEventWireup="true" CodeBehind="AddSupportingMaterial.aspx.cs" Inherits="Pantry.Web.Users.AddSupportingMaterial" Title="Add Supporting Metarials" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="Resources/js/DataTables/jquery.dataTables.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    	function validate() {
    		if (document.getElementById("<%=TextBoxUrl.ClientID%>").value == "") {
    			showmessage('Please input Url !', 'ERROR', '', 'false');
    			document.getElementById("<%=TextBoxUrl.ClientID%>").focus();
    			return false;
    		}
    		return true;
    	}
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:PostBackTrigger ControlID="ButtonClickMaterial"/>
            <asp:PostBackTrigger ControlID="ButtonBackOrganisationList"/>
        </Triggers>
        <ContentTemplate>
            <div class="widget_header">
                <h4 class="widget_header_title wwIcon i_16_icons">Add Supporting Materials</h4>
                <div class="top-nav">
                    <asp:Button ID="ButtonClickMaterial" CssClass="submitIt simple_buttons" runat="server" Text="Save" ValidationGroup="CreateGroup" OnClick="CreateSupportClick" OnClientClick="return validate();" />
                    <asp:Button ID="ButtonBackOrganisationList" CssClass="submitIt simple_buttons" runat="server" Text="Back" OnClick="BackListSupportClick" />
                </div>
            </div>
            <div class="widget_contents_tienvn" id="content_tienvn">
                <table width="100%" border="0" cellpadding="5">
            <tr>
                <td class="AlignTd">
                    <span class="label">URL</span>&nbsp;
                    <span style="color:red">*</span>
                </td>
                <td>
                    <asp:TextBox runat="server" ID="TextBoxUrl" CssClass="Duongnt8TextBox" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxUrl" CssClass="Require" ValidationGroup="CreateGroup" />
                </td>
                <td class="AlignTd">
                    <span class="label">Added By</span>
                </td>
                <td>
                    <asp:TextBox runat="server" ID="TextBoxAddedBy" CssClass="Duongnt8TextBox" ValidationGroup="CreateGroup"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="AlignTd" valign="top">
                    <span class="label">Description</span>
                </td>
                <td>
                    <asp:TextBox runat="server" ID="TextBoxDescription" CssClass="Duongnt8TextArea" TextMode="MultiLine" ValidationGroup="CreateGroup" />
                </td>
                <td class="AlignTd" valign="top">
                    <span class="label">Added Date</span>
                </td>
                <td valign="top">
                    <asp:TextBox runat="server" ID="TextBoxAddedDate" CssClass="Duongnt8TextBox pick_date" ValidationGroup="CreateGroup" />
                </td>
            </tr>
            <tr>
                <td class="AlignTd">
                    <span class="label">Type</span>
                </td>
                <td>    
                    <asp:DropDownList CssClass="simple_form" runat="server" ID="DropDownListType" ValidationGroup="CreateGroup">
                        <asp:ListItem Value="doc" Selected="True">Doc</asp:ListItem>
                        <asp:ListItem Value="pdf">PDF</asp:ListItem>
                        <asp:ListItem Value="excel">Excel</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="AlignTd">
                    <span class="label">Organisation Name</span>
                </td>
                <td>
                    <asp:DropDownList CssClass="simple_form" runat="server" ID="DropDownListOrgName" ValidationGroup="CreateGroup" />   
                </td>
            </tr>
        </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
